<template>
	<view class="fee-bottom" :style="'background:' + bg">
		<!-- <image class="fee-image" src="/static/images/warn.png"></image> -->
		<text class="qh-rt-single qh-rt-tishi2 fee-icon" :style="'color:' + iconColor"></text>
		<view class="fee-text">单笔消费满{{delivery_fee}}元免运费</view>
	</view>
</template>

<script>
	export default {
		name: 'expressFee',
		props: {
			delivery_cost: {
				type: String,
				defalut: ''
			},
			background: {
				type: String,
				defalut: '#fff'
			},
			iconColor: {
				type: String,
				defalut: '#ff5c6d'
			},
		},
		data() {
			return {
				delivery_fee: '',
				bg: '#fff'
			}
		},
		mounted() {
			this.delivery_fee = this.$props.delivery_cost;
			this.bg = this.$props.background ? this.$props.background : '#fff';
		}
	}
</script>

<style scoped>
	.fee-icon {
		font-size: 36rpx;
	}

	.fee-bottom {
		position: relative;
		z-index: 1;
		height: 80rpx;
		display: flex;
		align-items: center;
	}

	.fee-text {
		font-size: 28rpx;
		line-height: 36rpx;
		margin-left: 30rpx;
		color: #666;
	}
</style>
